package com.shanghaionstar.pin;

import android.content.Context;

import com.shanghaionstar.utils.ApplicationUtil;
import com.shanghaionstar.utils.BusinessUtil;

/**
 * Created by kai zhang on 2015/10/21 20:45.
 */
public class PinUtil {
    /**
     * 是否需要输入pin
     */
    public static boolean isNeedPin(Context context) {
        // token expired , then display the pin page
        if (BusinessUtil.checkPinPageTokenExpired(context)) {
            return true;
        }
        return !ApplicationUtil.getInstance().isPin();
    }
}
